<?xml version="1.0"?>
<jsp:root 	xmlns:jsp="http://java.sun.com/JSP/Page"
 			xmlns:c="http://java.sun.com/jsp/jstl/core"
 			xmlns="http://www.w3.org/1999/xhtml"
 			version="2.1">
 <jsp:directive.page contentType="text/html" pageEncoding="UTF-8" />
 <jsp:directive.page isELIgnored="false" />
 <jsp:output 	omit-xml-declaration="false" 
 			 	doctype-root-element="HTML" 
 				doctype-system="about:legacy-compat" />
<jsp:directive.page isELIgnored="false" />
<html>
<head>
 <script>var path = "${pageContext.request.contextPath}"</script>
<!-- AA -->
</head>
<body onload="document.forms[0].submit();">
<form action="${pageContext.request.contextPath}/login" name="myform" id="form" method="post">
<c:forEach items="${cookie}" var="cookies">
	<c:if test="${cookies.value.name == 'login' }">
		<c:set var="logeado" value="true" scope="session" />
		<input type="hidden" name="logear" value="${cookies.value.value}" />
	</c:if>
</c:forEach> 
<input type="hidden" name="cookie" value="false" />
</form>
</body>
</html>
</jsp:root>